package CreationMode.abstractFactory.digitalproducts;

public class FactoryMi implements Factory{

    @Override
    public Computer createComputer() {
        System.out.println("小米工厂生成一台电脑");
        return new ComputerMi();
    }

    @Override
    public Phone createPhone() {
        System.out.println("小米工厂生成一台手机");
        return new PhoneMi();
    }
}
